package cn.itsource.system.mapper;

import cn.itsource.system.domain.Role;
import cn.itsource.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2022-09-21
 */
public interface RoleMapper extends BaseMapper<Role> {

    //添加当前角色的权限
    void addRolePermissions(Role role);

    //添加当前角色的菜单
    void addRoleMenus(Role role);

    //删除当前角色的权限
    void deleteRolePermission(Long id);

    //删除当前角色的菜单
    void deleteRoleMenu(Long id);

    //删除当前角色对应的员工
    void deleteRoleEmployee(Long id);
}
